-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect revision timeout defaults in cm #14600
Conversation
// Default ResponseStartTimeoutSeconds only in case we have a non-zero default and the latter is not larger than the revision timeout. | ||
// A zero default or a zero value set from the user or a nil value skips timer setup at the QP side. | ||
if rs.ResponseStartTimeoutSeconds == nil { | ||
if cfg.Defaults.RevisionRequestStartTimeoutSeconds < *rs.TimeoutSeconds && cfg.Defaults.RevisionRequestStartTimeoutSeconds != 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revision-response-start-timeout-seconds
is used to initialize RevisionRequestStartTimeoutSeconds so we use that.
// We default this to what the user has specified
nc.RevisionRequestStartTimeoutSeconds = nc.RevisionTimeoutSeconds
if err := cm.Parse(data,
cm.AsInt64("revision-response-start-timeout-seconds", &nc.RevisionRequestStartTimeoutSeconds),
); err != nil {
return nil, err
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update RevisionRequestStartTimeoutSeconds
to match the key name in a subsequent PR?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14600 +/- ##
==========================================
- Coverage 86.03% 86.01% -0.02%
==========================================
Files 197 197
Lines 14916 14924 +8
==========================================
+ Hits 12833 12837 +4
- Misses 1774 1778 +4
Partials 309 309 ☔ View full report in Codecov by Sentry. |
/test upgrade-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
// Default ResponseStartTimeoutSeconds only in case we have a non-zero default and the latter is not larger than the revision timeout. | ||
// A zero default or a zero value set from the user or a nil value skips timer setup at the QP side. | ||
if rs.ResponseStartTimeoutSeconds == nil { | ||
if cfg.Defaults.RevisionRequestStartTimeoutSeconds < *rs.TimeoutSeconds && cfg.Defaults.RevisionRequestStartTimeoutSeconds != 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update RevisionRequestStartTimeoutSeconds
to match the key name in a subsequent PR?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso, skonto The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Can you update the PR body with a |
@skonto : |
@jgournet sorry for the late reply, sure. |
Proposed Changes
revision-idle-timeout-seconds
&revision-response-start-timeout-seconds
are set to a positive value less than the revision timeout we need to respect that and set some timer./kind bug
Release Note